layui.define('layer', function(exports) {
    var $ = layui.jquery;
    var layer = layui.layer;
    //触发事件
    var demoCom = {
        info: function(text) {
            layer.msg('info:' + text);
        },
        warn: function(text) {
            layer.msg('warn:' + text);
        }
    };
    exports('demoCom', demoCom);


});